package com.shawn.dubbo.api;

import com.shawn.model.mongo.Video;
import com.shawn.model.vo.PageResult;

import java.util.List;

public interface VideoApi {
    String save(Video vi);

    PageResult<Video> getVideos(Integer page, Integer pageSize, Long userId);

    List<Video> getByIdList(List<Long> vidList, Long userId);

    Integer whetherLikeVideo(String videoId,Long userId ,Integer type);

    Integer publishComment(Long userId, String id, String comment);

    void whetherFocusAuthor(Long userId, Long authorId, Integer type);

    PageResult<Video> getVideoByPage(Integer page, Integer pageSize, Long userId,String sortProp,String sortOrder);
}
